package com.front.managementfront.dictionary.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author yck
 * @since 2021-05-09
 */
@ApiModel(description = "字典项")
public class HktsDictionaryItem extends Model<HktsDictionaryItem> {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "主键 修改添加，新增不需要")
    private String id;
    @ApiModelProperty(value = "创建人" ,hidden=true)
    private String createBy;
    @ApiModelProperty(value = "创建时间",hidden=true)
    private LocalDateTime createTime;
    @ApiModelProperty(value = "是否删除0否，1是",hidden=true)
    private Integer delFlag;
    @ApiModelProperty(value = "修改人",hidden=true)
    private String updateBy;
    @ApiModelProperty(value = "修改时间",hidden=true)
    private LocalDateTime updateTime;
    @ApiModelProperty(value = "是否禁用 0否 1 是" )
    private String isDisable;
    @ApiModelProperty(value = "顺序")
    private Integer itemOrder;
    @ApiModelProperty(value = "值")
    private String itemValue;
    @ApiModelProperty(value = "字典id")
    private String listId;
    @ApiModelProperty(value = "单位")
    private String unit;
    @ApiModelProperty(value = "是否为热门 0 否，1是",hidden=true)
    private String isHotCategories;
    @ApiModelProperty(value = "协议id")
    private String agreementId;

    public String getAgreementId() {
        return agreementId;
    }

    public void setAgreementId(String agreementId) {
        this.agreementId = agreementId;
    }

    public String getIsHotCategories() {
        return isHotCategories;
    }

    public void setIsHotCategories(String isHotCategories) {
        this.isHotCategories = isHotCategories;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public String getIsDisable() {
        return isDisable;
    }

    public void setIsDisable(String isDisable) {
        this.isDisable = isDisable;
    }

    public Integer getItemOrder() {
        return itemOrder;
    }

    public void setItemOrder(Integer itemOrder) {
        this.itemOrder = itemOrder;
    }

    public String getItemValue() {
        return itemValue;
    }

    public void setItemValue(String itemValue) {
        this.itemValue = itemValue;
    }

    public String getListId() {
        return listId;
    }

    public void setListId(String listId) {
        this.listId = listId;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public static final String ID = "id";

    public static final String CREATE_BY = "create_by";

    public static final String CREATE_TIME = "create_time";

    public static final String DEL_FLAG = "del_flag";

    public static final String UPDATE_BY = "update_by";

    public static final String UPDATE_TIME = "update_time";

    public static final String IS_DISABLE = "is_disable";

    public static final String ITEM_ORDER = "item_order";

    public static final String ITEM_VALUE = "item_value";

    public static final String LIST_ID = "list_id";

    public static final String UNIT = "unit";
    /*
    * isHotCategories
    * */
    public static final String IS_HOT_CATEGORIES = "is_hot_categories";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "HktsDictionaryItem{" +
                ", id=" + id +
                ", createBy=" + createBy +
                ", createTime=" + createTime +
                ", delFlag=" + delFlag +
                ", updateBy=" + updateBy +
                ", updateTime=" + updateTime +
                ", isDisable=" + isDisable +
                ", itemOrder=" + itemOrder +
                ", itemValue=" + itemValue +
                ", listId=" + listId +
                ", unit=" + unit +
                /*isHotCategories*/
                ", isHotCategories=" + isHotCategories +
                "}";
    }
}
